<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <Script>

        // 获取可视窗口属性

        var w = window.innerWidth

        var h = window.innerHeight

        document.write("屏幕尺寸"+w+"*"+h)

        // 弹出层

        // window.alert("111")

        // 询问框
        // var res = window.confirm("111")
        // console.log(res);

        var res = window.prompt("111")
        console.log(res);


    </Script>

</body>
</html>